Advanced Volume ProfileTHIS SCRIPT CURRENTLY ONLY WORKS FOR ASSETS THAT TRADE 24/7 OR CBOE FUTURES HOURS!
This script plots volume relative to an asset's historical volume profile.
Usage:
As a companion to my "Unusual Time Frame Volume" (UTF Volume) script, this plots volume against the same historical volume profile used for UTF Volume.
The same high volume (relative to historical) threshold alert is available (yellow bar).
Likewise, if the volume exceeds the historical threshold, but is below the alert threshold, the bar color is orange.
At the top of the chart is an indicator which is green if a bar has higher volume than the previous bar.
You can also set a threshold for this such that if the volume of a bar exceeds the previous bar by a certain multiplier which will turn the indicator yellow.
For example, if the threshold is set to "1.5", then the indicator will be yellow (instead of green) on an increase in volume over the previous bar of 1.5x.
NOTES:
Again, this script currently only works for assets that trade 24/7 or CBOE Futures hours!
Make sure you set the "Asset Mode" and "Time Frame (minutes)" to values that match your asset and chart setting.
For example, if you are trading Futures on a 2m chart, set the Asset Mode to Futures and Time Frame to 2m.
If you are trading crypto on a 5m chart, set the Asset Mode to 24/7 and Time Frame to 5m.
If the settings are not set appropriately, the output will be incorrect/invalid.
If you choose a "Look-back (Days)" setting that is too far back given the time frame, the script will produce an error.
I suggest playing with settings from "1" (compares volume to the previous day's volume) to the highest number that doesn't break the script.
For example, at a 2m time frame, the maximum look-back will be "6" or "7" depending on which mode you are using.
Longer chart time settings allow larger look-back values.
I find that the default value ("6") does a decent job in general.
Please feel free to reuse or further develop this script.
I would greatly appreciate it if you would send me a message below if you find it useful.
Cari dalam skrip untuk "the script"
[CLX][#01] Animation - Price Ticker (Marquee)This indicator displays a classic animated price ticker overlaid on the userโs current chart. It is possible to fully customize it or to select one of the predefined styles.
A detailed description will follow in the next few days.
Used Pinescript technics:
- varip (view/animation)
- tulip instance (config/codestructur)
- table (view/position)
By the way, for me, one of the coolest animated effects is by Duyck
We hope you enjoy it! ๐
CRYPTOLINX - jango_blockchained ๐๐
Disclaimer:
Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely.
The script is for informational and educational purposes only. Use of the script does not constitute professional and/or financial advice. You alone have the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold dgtrd TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script.
SB Master Chart v4This is the follow up to SB Master Chart. This is a subscription only indicator.
SB Master Chart was designed with a minimalist appearance, but is able to provide a trader with all the information he needs at a glance to make informed trading decisions. This chart utilizes the alert() function so the trader can be alerted even while away from a computer to a potential trade opportunity.
Version 4 has been redesigned for maximal efficiency. Over the many iterations of the script, I introduced many new visual affects which detracted from the simplicity of the original script. I have since removed many of the eye candy and kept the fundamental visuals that made the script eye appealing. I have redesigned the back end code of the script to be more efficient with the use of custom functions. From V1 to V2 I introduced a trend filter. This made V2 a multi-time frame script. I have since removed the trend filter because it was filtering out many viable trades on shorter time periods. Despite removing the trend filter, I have kept the multi time period functionality of the script and introduced alerting on multiple time periods with one alert.
This chart incorporates the following indicators in some form
Bolinger
MACD
RSI
Stochastik
VWAP
Moving Averages
Volume
The chart utilizes a combination of 5 indicators to determine overbought and oversold levels.
The green dot indicates oversold conditions. (alerted)
The red dot indicates overbought conditions. (alerted)
The orange dots sometimes precede the green and red dots and are determined by opportunistic volume and often provide better enter and exit opportunities and green and red dots. (alerted)
The yellow dots always precede the green and red dots.
The bar colors are determined by the three moving averages the chart tracks, MA5 , MA20, and MA50.
If the bars are green, a clear uptrend is happening, red represents downtrend.
Yellow bars indicate MA5 is in an uptrend and Orange indicates that MA5 is in a downtrend.
The VWAP lines are based on the following periods and serve as support and resistance lines.
Green (20 Period)
Yellow (50 Period)
Red (100 Period)
The black horizontal lines represent the upper and lower Bollinger bands and serve as elastic support and resistance lines.
The green background represents oversold on 4+ time periods. (alerted)
The red background represents overbought on 4+ time periods. (alerted)
I have also implemented a 4 column table at the top for key indicators: RSI, Stochastic %K, Bollinger, and Daily Trend.
This script utilizes several alert() conditions of various frequency. It utilizes both the alert.freq_once_per_bar_close and alert.freq_once_per_bar options to achieve more timely alerts.
*Special Note - Set alerts on the 30m chart for best results, this will allow regular alerts for all time periods every 30 minutes throughout the trading day.
Some alerts do not require bar close and should be taken more seriously as the alert is more time sensitive.
Reversal with Bollinger Bands + RSI + ADX + ATR (Upgraded)Hi,
Welcome to my 4th script.
Someone asked me some questions about the Bollinger Band strategy I previously published. When I went back to my published script I couldn't help myself but simply try and make it better. Which I did.
Since I've published that script, I've gained much more knowledge about how Pinescript functions. As well as gaining more and more knowledge about how the markets are structered etc.
In this reversal script we use 4 indicators to determine good entry signals, we determine whether the market is ranging or trending and we still only want to take trades in the direction of the "trend".
Bollinger Bands are used for our entry signal. When price hits either side of the band, we wait for a reverse candlestick before we enter a position.
RSI is used to determine if we're in a trending market or in a ranging market. You can adjust the values in the inputs. You can determine the minimum RSI value and the maximum RSI value.
ADX is used the same way as RSI, you can adjust the value in the inputs. You can determine the minimum ADX value.
Last but not least we use two EMA's, a 200 EMA and 100 EMA. Both are adjustable through the inputs. I used two EMA's because I noticed when using this strategy that we'd enter a new position often after having a bad trade. Using two EMA's might clean up some signals, in my case with EUR/USD on a 15m timeframe, it didn't clean up enough signals.
All the default values are pretty decent but might require some finetuning on a certain instrument. Don't overfit the strategy though, that'll only give you bad signals in the future.
Then we are off to our exit signals.
Initially I wanted to incorporate my previous Bollinger Band exit signals as well, but it was too much of a hassle to make the script work as intended so I left it out. If you want to use those exit signals, just find my other script.
When we're in a position and price crosses the opposite band, we wait for a reverse candlestick before we exit the position.
Additionally we want our losses to be as small as possible, so we use RSI to signal us when the market is, or starts to, trend against us. This is where you use the minimum and maximum exit values. So when RSI crosses over or under that value, it'll exit the position.
Furthermore, we use the ATR indicator to set our stop loss, which is pretty basic stuff. You can adjust the ATR multiplier in the inputs. Disabling "Use Trailing Stop?" is really inadvisable unless you know this script inside out as your only exit signals will be opposite Bollinger Band Cross and RSI overbought / oversold areas.
Binary Option Turbo M1 by MercalonaAuto risk
You are diving into a high-risk investment. We are not responsible for losses, the only certainty is that they will come, the most important thing is to manage them. Test this script on a demo account, and use the backtest. Make sure you are familiar with it before using real money. Use all your experience and other assistance for better accuracy. Do not risk more than 5% per day. Try to use a maximum of 1-2%.
Recommendations
It is highly recommended whenever trying to make entries in stronger areas
Try to make entries when the graph is in trend and with good movements. It is better to lose an entry than to lose money.
Check if the chart is already with good accuracy before making your entry. At least 65%.
Try to make entries when the payout is above 75%. This will help you with risk / return.
About the Script
This script was developed to identify good entry areas quickly and safely. We recommend using in binary option, where the next candle is successful. Although it can also be used in other markets, using a larger timeframe, such as 1h or 4h.
How it works?
This script is based on trends, up and down, where up trend, we look for "CAL" entries in retractions, and down trends, the entries will be "PUT". Always operate in favor of the trend for better accuracy. A session filter is also displayed. The Filter is based on the New York and London session. In these periods there is a greater market volatility, where it is recommended to operate and avoid losses. In addition, there is also a (no trend) filter. Where it shows whether the chart is volatile or not, even during open market sessions.
What is the final result?
This script will show good entries areas. These areas are represented with lines. The lines closest to the current price are thinner lines. And the lines far from price are thicker. The thick lines represent stronger areas and are resistant to price. This means that there is a greater possibility of reversal when prices touch these lines.
Settings (mode)
There are 2 configuration modes:
1. MODERATELY
2. AGGRESSIVE
Using the "MODERATELY" mode, the signals are rarer, here we expect the price to hit the best areas indicated. To place the entry. Here we expect greater accuracy.
In "AGGRESSIVE" mode, we don't expect good entries. Whenever the price hits entry areas it will be considered an entry. In this case, the accuracy is less, since the areas do not have a great potential for reversion.
Settings (Length)
Here the number of bars can be configured for the calculation of support and resistance areas. A low amount may not be enough to check for good areas. And a very large area can be confused with areas that really matter. Try to check the best quantity for the chart you want to trade.
Settings (Win Rate Limit)
Place the limit of analyzed signals in this field. It is restricted to the โWin โโRate Max Barsโ field, which will be explained below. If the configured limit is not reached, the cause is that there were not enough signals within the configured bar limit. ATTENTION: Understand that a high value will cause a slow calculation of the script.
Settings (Win Rate Max Bars)
This is information is used to limit the number of bars in the โWin โโRateโ calculation. ATTENTION: Understand that a high value will cause a slow calculation of the script.
Settings (Sessions)
There are 2 other configurations. New York session and London session. You can see how it works reading below.
Indicator โStars of Recommendationโ
The indicator has 3 stars of recommendation.
NO TRADE (There is no positive point to take chances)
In Session (At least 1 open market, this is a positive point to take chances)
In Trend (There is a good probability of assertiveness when it is on trend)
More than one identified area. (Generally, when there is more than one area, the more distant areas become stronger and stronger. This is a positive point when the price reaches them.)
Good luck โค๏ธ
Please feedback us.
We hope this helps you!
MTF Oscillator Framework [PineCoders]This framework allows Pine coders to quickly build a complete multi-timeframe oscillator from any calculation producing values around a centerline, whether the values are bounded or not. Insert your calculation in the script and you have a ready-to-publish MTF Oscillator offering a plethora of presentation options and features.
โโ HOW TO USE THE FRAMEWORK
1 โ Insert your calculation in the `f_signal()` function at the top of the "Helper Functions" section of the script.
2 โ Change the script's name in the `study()` declaration statement and the `alertcondition()` text in the last part of the "Plots" section.
3 โ Adapt the default value used to initialize the CENTERLINE constant in the script's "Constants" section.
4 โ If you want to publish the script, copy/paste the following description in your new publication's description and replace the "OVERVIEW" section with a description of your calculations.
5 โ Voilร !
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโ OVERVIEW
This oscillator calculates a directional value of True Range. When a bar is up, the positive value of True Range is used. A negative value is used when the bar is down. When there is no movement during the bar, a zero value is generated, even if True Range is different than zero. Because the unit of measure of True Range is price, the oscillator is unbounded (it does not have fixed upper/lower bounds).
True Range can be used as a metric for volatility, but by using a signed value, this oscillator will show the directional bias of progressively increasing/decreasing volatility, which can make it more useful than an always positive value of True Range.
The True Range calculation appeared for the first time in J. Welles Wilder's New Concepts in Technical Trading Systems book published in 1978. Wilder's objective was to provide a reliable measure of the effective movementโor rangeโbetween two bars, to measure volatility. True Range is also the building block used to calculate ATR (Average True Range), which calculates the average of True Range values over a given period using the `rma` averaging methodโthe same used in the calculation of another of Wilder's remarkable creations: RSI.
โโ CONCEPTS
This oscillator's design stems from a few key concepts.
Relative Levels
Other than the centerline, relative rather than absolute levels are used to identify levels of interest. Accordingly, no fixed levels correspond to overbought/oversold conditions. Relative levels of interest are identified using:
โโข A Donchian channel (historical highs/lows).
โโข The oscillator's position relative to higher timeframe values.
โโข Oscillator levels following points in time where a divergence is identified.
Higher timeframes
Two progressively higher timeframes are used to calculate larger-context values for the oscillator. The rationale underlying the use of timeframes higher than the chart's is that, while they change less frequently than the values calculated at the chart's resolution, they are more meaningful because more work (trader activity) is required to calculate them. Combining the immediacy of values calculated at the chart's resolution to higher timeframe values achieves a compromise between responsiveness and reliability.
Divergences as points of interest rather than directional clues
A very simple interpretation of what constitutes a divergence is used. A divergence is defined as a discrepancy between any bar's direction and the direction of the signal line on that same bar. No attempt is made to attribute a directional bias to divergences when they occur. Instead, the oscillator's level is saved and subsequent movement of the oscillator relative to the saved level is what determines the bullish/bearish state of the oscillator.
Conservative coloring scheme
Several additive coloring conditions allow the bull/bear coloring of the oscillator's main line to be restricted to specific areas meeting all the selected conditions. The concept is built on the premise that most of the time, an oscillator's value should be viewed as mere noise, and that somewhat like price, it only occasionally conveys actionable information.
โโ FEATURES
Plots
โโข Three lines can be plotted. They are named Main line , Line 2 and Line 3 . You decide which calculation to use for each line:
โโโโข The oscillator's value at the chart's resolution.
โโโโข The oscillator's value at a medium timeframe higher than the chart's resolution.
โโโโข The oscillator's value at the highest timeframe.
โโโโข An aggregate line calculated using a weighed average of the three previous lines (see the Aggregate Weights section of Inputs to configure the weights).
โโข The coloring conditions, divergence levels and the Hi/Lo channel always apply to the Main line, whichever calculation you decide to use for it.
โโข The color of lines 2 and 3 are fixed but can be set in the "Colors" section of Inputs.
โโข You can change the thickness of each line.
โโข When the aggregate line is displayed, higher timeframe values are only used in its calculation when they become available in the chart's history,
โโotherwise the aggregate line would appear much later on the chart. To indicate when each higher timeframe value becomes available,
โโa small label appears near the centerline.
โโข Divergences can be shown as small dots on the centerline.
โโข Divergence levels can be shown. The level and fill are determined by the oscillator's position relative to the last saved divergence level.
โโข Bull/bear markers can be displayed. They occur whenever a new bull/bear state is determined by the "Main Line Coloring Conditions".
โโข The Hi/Lo (Donchian) channel can be displayed, and its period defined.
โโข The background can display the state of any one of 11 different conditions.
โโข The resolutions used for the higher timeframes can be displayed to the right of the last bar's value.
โโข Four key values are always displayed in the Data Window (fourth icon down to the right of your chart):
โโoscillator values for the chart, medium and highest timeframes, and the oscillator's instant value before it is averaged.
Main Line Coloring Conditions
โโข Nine different conditions can be selected to determine the bull/bear coloring of the main line. All conditions set to "ON" must be met to determine the bull/bear state.
โโข A volatility state can also be used to filter the conditions.
โโข When the coloring conditions and the filter do not allow for a bull/bear state to be determined, the neutral color is used.
Signal
โโข Seven different averages can be used to calculate the average of the oscillator's value.
โโข The average's period can be set. A period of one will show the instant value of the oscillator,
โโprovided you don't use linear regression or the Hull MA as they do not work with a period of one.
โโข An external signal can be used as the oscillator's instant value. If an already averaged external value is used, set the period to one in this indicator.
โโข For the cases where an external signal is used, a centerline value can be set.
Higher Timeframes
โโข The two higher timeframes are named Medium timeframe and Highest timeframe . They can be determined using one of three methods:
โโโข Auto-steps: the higher timeframes are determined using the chart's resolution. If the chart uses a seconds resolution, for example,
โโโthe medium and highest resolutions will be 15 and 60 minutes.
โโโข Multiples: the timeframes are calculated using a multiple of the chart's resolution, which you can set.
โโโข Fixed: the set timeframes do not change with the chart's resolution.
Repainting
โโข Repainting can be controlled separately for the chart's value and the higher timeframe values.
โโข The default is a repainting chart value and non-repainting higher timeframe values. The Aggregate line will thus repaint by default,
โโas it uses the chart's value along with the higher timeframes values.
Aggregate Weights
โโข The weight of each component of the Aggregate line can be set.
โโข The default is equal weights for the three components, meaning that the chart's value accounts for one third of the weight in the Aggregate.
High Volatility
โโข This provides control over the volatility filter used in the Main line's coloring conditions and the background display.
โโข Volatility is determined to be high when the short-term ATR is greater than the long-term ATR.
Colors
โโข You can define your own colors for all of the oscillator's plots.
โโข The default colors will perform well on both white and black chart backgrounds.
Alerts
โโข An alert can be defined for the script. The alert will trigger whenever a bull/bear marker appears in the indicator's display.
โโThe particular combination of coloring conditions and the display of bull/bear markers when you create the alert will thus determine when the alert triggers.
โโOnce the alerts are created, subsequent changes to the conditions controlling the display of markers will not affect the existing alert(s).
โโข You can create multiple alerts from this script, each triggering on different conditions.
Backtesting & Trading Engine Signal Line
โโข An invisible plot named "BTE Signal" is provided. It can be used as an entry signal when connected to the PineCoders Backtesting & Trading Engine as an external input.
โโIt will generate an entry whenever a marker is displayed.
Look first. Then leap.
Support Resistance - DynamicThis is Dynamic Support / Resistance script.
How it Works?
It finds Pivot Points and creates channels for each Pivot Point. Channel size is calculated by (Highest - Lowest) * %Channel_size in Loopback Period. After creating channels it calculates that how many Pivot Points in the channels. more Pivot Points in channel means stronger Support/Resistance. in the option menu there is S/R Strength, this is the minimum number of Pivot Points that each channel must contain to be S/R. calculation starts from last pivot point and go back for "loopback period" which is 300 by default. so last Pivot Points have more priority. Finally after calculating Support/Resistance it draws lines.
Number of Support/Resistance line is Dynamic and up to 20 lines, that means number of lines changes dynamically. you can see how the script puts Suppport/Resistance lines dynamically by "Replay" button. (if I have time I will try to put a video)
Currently the scripts checks up to 40 pivot points in loopback period. it shows up to 20 S/Rs only for visible area in the chart.
There is option to Show S/R lines as Solid, Dotted or Dashed.
Enjoy!
Trend Follower - Light Mode | jhFollow up script for my Trend Follower script.
I'm used to dark mode, so I coded a few key plots in white, so those are changed into black on the script.
Notably:
- > 1 ATR in black dots along the baseline
- Current and previous ATR text labels to the right of the price
- A text label spacing input that allows you to adjust the spacing for text label from price.
This is a trend following system that combines 3 indicators which provide different functionalities, also a concept conceived by VP's No Nonsense FX / NNFX method.
1. Baseline
The main baseline filter is an indicator called Modular Filter created by Alex Grover
- www.tradingview.com
- Alex Grover - Modular Filter
-------
That's the moving average like baseline following price, filtering long and short trends and providing entry signals when the price crosses the baseline.
Entry signal indicated with arrows.
2. Volume/Volatility, I will called it Trend Strength
The next indicator is commonly known as ASH, Absolute Strength Histogram.
This indicator was shared by VP as a two line cross trend confirmation indicator, however I discovered an interesting property when I modified the calculation of the histogram.
- Alex Grover Absolute Strength
-------
My modification and other info here
- Absolute Strength Histogram v2
-------
I simplified the display of the trend strength by plotting squares at the bottom of the chart.
- Lighted Squares shows strength
- Dimmed Squares shows weakness
3. Second Confirmation / Exits / Trailing Stop
Finally the last indicator is my usage of QQE (Qualitative Quantitative Estimation), demonstrated in my QQE Trailing Line Indicator
- QQE Trailing Line for Trailing Stop
-------
Three usages of this amazing indicator, serving as :
- Second trend confirmation
- Exit signal when price crosses the trailing line
- Trailing stop when you scaled out the second trade
This indicator is plotted with crosses.
Additional plots and information
Bar Color
- Green for longs, Red for shorts, White when the baseline direction conflicts with the QQE trailing line direction
- When it's white, it's usually ranging and not trending, ASH will also keep you off ranging periods.
-------
ATR Filter
- White circles along the baseline, they will show up if the price has moved more than one ATR from the baseline
- The default allowance is 1 ATR.
-------
The previous and current ATR value
- Label on the right side of the chart showing the previous and current value of ATR
Trend Direction Helper (ZigZag and S/R and HH/LL labels)Hey everyone
First of all, I'd like to thank Ricardo Santos, Backtest Rookies for the inspiration for this script.
Actually, most of it is coming from them and I only mixed them up (and added my secret sauce ^^). If some of you are not thinking about a trading secret sauce, please get serious for a moment :)
Some of you asked me how I do to set the trend direction. You all understood that if you get an UP label, then the price should go up and vice-versa for down.
But it's not so easy to define the good signals for each asset and each timeframe. I'm going to repeat what I said yesterday because ... well... that's what trading is about
So quoting myself here "The inputs set by default will have to be changed for your asset/timeframe and can't be generic for everything. You have to play with the inputs until the signals will make sense to you
The indicator/strategy with a unique configuration that you'll never check or update according to the market condition DOES NOT exit. "
BUT... a bit of patience and practice and you might do wonders.
The Method
I never realized until now but by connecting the higher highs/lower lows, I was drawing zigzag lines.
The Zig Zag Master is Ricardo Santos . Please give him a follow, he's awesome
For those who don't want to draw on the chart or (my preferred choice) need some inspiration to define your trend directions, this script is for YOU (and your family, your pet, your girlfriend/boyfriend, ...)
I think that each asset/timeframe chart has its own history. What worked in a post could work in the future.
In that regard, if a trend direction worked in the past, that's the parameter that I'll use to trade with it in a demo account and make sure it's relevant. If not then I will adjust
If you're trading with new indicators or a new method right away on your real trading account, you're gonna have a bad time imgflip.com
Lines EVERYWHERE
The script draws the classical horizontal pivots + the zig zag lines + the Higher Highs/Lower Lows label in just 1 script. I'm very excited to share a script (on which I coded 100 lines out of 500) but no one else did it
The horizontal pivots part are coming from Backtest Rookies
For more security, you can add a pullback on a moving average after getting a signal. Pullbacks are necessary to limit any eventual loss or maximize your gains by getting in the trend sooner.
I really give you a solid method and a great script in my opinion. 6 years of experience given away for FREE :p (when Dave will start thinking as a business man instead :O)
Does it repaint ?
Getting this question twice a day. You guys are obsessed with the repainting :)
Short answer, yes because it will calculate the pivots and zig zags whenever new higher highs/lower lows will be formed.
However, the trend direction code is based on the candle close so it shouldn't repaint. If it does, please let me know
See you all on Monday
Love you all
Dave
____________________________________________________________
Be sure to hit the thumbs up. Building those indicators take a lot of time and likes are always rewarding for me :) (tips are accepted too)
- If you want to suggest some indicators that I can develop and share with the community, please use my personal TRELLO board
- I'm an officially approved PineEditor/LUA/MT4 approved mentor on codementor. You can request a coaching with me if you want and I'll teach you how to build kick-ass indicators and strategies
Jump on a 1 to 1 coaching with me
- You can also hire for a custom dev of your indicator/strategy/bot/chrome extension/python
Disclaimer:
Trading involves a high level of financial risk, and may not be appropriate because you may experience losses greater than your deposit. Leverage can be against you.
Do not trade with capital that you can not afford to lose. You must be aware and have a complete understanding of all the risks associated with the market and trading. We can not be held responsible for any loss you incur.
Trading also involves risks of gambling addiction.
Please notice I do not provide financial advice - my indicators, strategies, educational ideas are intended to provide only some source code for anyone interested in improving their trading
The proprietary indicators and strategies developed by Best Trading Indicator, the object of intellectual property rights are and remain the exclusive property of Best Trading Indicator, at the exclusion of images and videos and texts free of rights or provided by the Company or external legal or physical person.
No assignment of intellectual property rights is carried out through these Terms and Conditions.
Any total or partial reproduction, modification or use of these properties for any reason whatsoever is strictly prohibited without the express written authorization of the Company.
Plotchar - How to draw external symbols on a chartHey everyone
It's been a while :) but still on holidays and working on the website. I'll resume the scripts sharing shortly once I'll get back home
For today, I wanted to share a very useful script that is going to make you a top of money 100% guaranteed and you'll even have a Lamborghini delivered at your place by tomorrow... (imagine some followers would believe me for this)
This "script" is a proof of concept that you can draw external Unicode symbols on a chart.
If you're tired with the plotshape shapes by default, you can use some others - I usually find mine there emojipedia.org
What are the use cases?
- Draw a dead skeleton when your stop-loss is hit
- Draw a winning cup when your take profit is hit
- Draw a coffin when you run out of capital
FAQ
Q: Does this script has any interest?
A: I'm not sure myself
Q: Will you make money using it?
A: I'm not a financial advisor but ... very likely NO
Q: Is it cool though?
A: Hell yeah!!
Be sure to hit the thumbs up so that I'll share real scripts the next times and not "joke scripts". I promise it's the first and last time I'm sharing such a script
Dave
____________________________________________________________
- I'm an officially approved PineEditor/LUA/MT4 approved mentor on codementor. You can request a coaching with me if you want and I'll teach you how to build kick-ass indicators and strategies
Jump on a 1 to 1 coaching with me
- You can also hire for a custom dev of your indicator/strategy/bot/chrome extension/python
How to avoid repainting when using security() - PineCoders FAQNOTE
The non-repainting technique in this publication that relies on bar states is now deprecated, as we have identified inconsistencies that undermine its credibility as a universal solution. The outputs that use the technique are still available for reference in this publication. However, we do not endorse its usage. See this publication for more information about the current best practices for requesting HTF data and why they work.
This indicator shows how to avoid repainting when using the security() function to retrieve information from higher timeframes.
What do we mean by repainting?
Repainting is used to describe three different things, in what weโve seen in TV members comments on indicators:
1. An indicator showing results that change during the realtime bar, whether the script is using the security() function or not, e.g., a Buy signal that goes on and then off, or a plot that changes values.
2. An indicator that uses future data not yet available on historical bars.
3. An indicator that uses a negative offset= parameter when plotting in order to plot information on past bars.
The repainting types we will be discussing here are the first two types, as the third one is intentionalโsometimes even intentionally misleading when unscrupulous script writers want their strategy to look better than it is.
Letโs be clear about one thing: repainting is not caused by a bug ; it is caused by the different context between historical bars and the realtime bar, and script coders or users not taking the necessary precautions to prevent it.
Why should repainting be avoided?
Repainting matters because it affects the behavior of Pine scripts in the realtime bar, where the action happens and counts, because that is when traders (or our systems) take decisions where odds must be in our favor.
Repainting also matters because if you test a strategy on historical bars using only OHLC values, and then run that same code on the realtime bar with more than OHLC information, scripts not properly written or misconfigured alerts will alter the strategyโs behavior. At that point, you will not be running the same strategy you tested, and this invalidates your test results , which were run while not having the additional price information that is available in the realtime bar.
The realtime bar on your charts is only one bar, but it is a very important bar. Coding proper strategies and indicators on TV requires that you understand the variations in script behavior and how information available to the script varies between when the script is running on historical and realtime bars.
How does repainting occur?
Repainting happens because of something all traders instinctively crave: more information. Contrary to trader lure, more information is not always better. In the realtime bar, all TV indicators (a.k.a. studies ) execute every time price changes (i.e. every tick ). TV strategies will also behave the same way if they use the calc_on_every_tick = true parameter in their strategy() declaration statement (the parameterโs default value is false ). Pine coders must decide if they want their code to use the realtime price information as it comes in, or wait for the realtime bar to close before using the same OHLC values for that bar that would be used on historical bars.
Strategy modelers often assume that using realtime price information as it comes in the realtime bar will always improve their results. This is incorrect. More information does not necessarily improve performance because it almost always entails more noise. The extra information may or may not improve results; one cannot know until the code is run in realtime for enough time to provide data that can be analyzed and from which somewhat reliable conclusions can be derived. In any case, as was stated before, it is critical to understand that if your strategy is taking decisions on realtime tick data, you are NOT running the same strategy you tested on historical bars with OHLC values only.
How do we avoid repainting?
It comes down to using reliable information and properly configuring alerts, if you use them. Here are the main considerations:
1. If your code is using security() calls, use the syntax we propose to obtain reliable data from higher timeframes.
2. If your script is a strategy, do not use the calc_on_every_tick = true parameter unless your strategy uses previous bar information to calculate.
3. If your script is a study and is using current timeframe information that is compared to values obtained from a higher timeframe, even if you can rely on reliable higher timeframe information because you are correctly using the security() function, you still need to ensure the realtime barโs information you use (a cross of current close over a higher timeframe MA, for example) is consistent with your backtest methodology, i.e. that your script calculates on the close of the realtime bar. If your system is using alerts, the simplest solution is to configure alerts to trigger Once Per Bar Close . If you are not using alerts, the best solution is to use information from the preceding bar. When using previous bar information, alerts can be configured to trigger Once Per Bar safely.
What does this indicator do?
It shows results for 9 different ways of using the security() function and illustrates the simplest and most effective way to avoid repainting, i.e. using security() as in the example above. To show the indicatorโs lines the most clearly, price on the chart is shown with a black line rather than candlesticks. This indicator also shows how misusing security() produces repainting. All combinations of using a 0 or 1 offset to reference the series used in the security() , as well as all combinations of values for the gaps= and lookahead= parameters are shown.
The close in the call labeled โBESTโ means that once security has reached the upper timeframe (1 day in our case), it will fetch the previous dayโs value.
The gaps= parameter is not specified as it is off by default and that is what we need. This ensures that the value returned by security() will not contain na values on any of our chartโs bars.
The lookahead security() to use the last available value for the higher timeframe bar we are using (the previous day, in our case). This ensures that security() will return the value at the end of the higher timeframe, even if it has not occurred yet. In our case, this has no negative impact since we are requesting the previous dayโs value, with has already closed.
The indicatorโs Settings/Inputs allow you to set:
- The higher timeframe security() calls will use
- The source security() calls will use
- If you want identifying labels printed on the lines that have no gaps (the lines containing gaps are plotted using very thick lines that appear as horizontal blocks of one bar in length)
For the lines to be plotted, you need to be on a smaller timeframe than the one used for the security() calls.
Comments in the code explain whatโs going on.
Look first. Then leap.
THE PHOENIX v0.2 wSMDThis is my first publication, since sept 2018 i tested/converted to strategy over 500 scripts, this is by far my most profitable script.
Implementation in TradingView of modified version of the "Weis Wave".
indicatior will generate Long and Close Long signals according to market trend.
(Learned the hard way that using short instead of close long to close long orders will seriously mess backtest results and create unrealistic expectations)
Added a customizable RATE OF CHANGE indicator that I called SMD (sideways market detection) to try and avoid trading on sideways market.
References: "Trades About To Happen" David H. Weis, Division 2 of the Richard D. Wyckoff Method of Trading in Stocks.
I've had best results on 2h and 4h charts, I would not recommend to go below 1h, my general rule is to run the backtest on regular candle and make sure the backtest gives goodd result, but I use the script with autoview on heikin ashi.
Backtesting: You can change the dates of the backtest as you please, the backtest runs with 1000USD and 100% of equity orders, 3 ticks slippage and 0.1% commission.
For Autoview users: Will upload LONG ALERT and CLOSE LONG ALERT studies separately as I find it easier to see whats going on on 2 seperate indicators.
NO, IT DOES NOT REPAINT.
Malama's Dashboard with HeikinMalama's Dashboard with Heikin is a comprehensive trading indicator designed to provide traders with a consolidated view of market sentiment across multiple technical indicators. It combines Ichimoku Cloud, RSI, ADX, Choppiness Index, volume analysis, momentum, divergence detection, and multi-timeframe (MTF) MACD and volume trends to generate a composite sentiment score. The indicator displays these metrics in a visually intuitive table, enabling traders to quickly assess market conditions and make informed decisions. Optionally, it supports Heikin Ashi candles to smooth price data and reduce noise, aiding in trend identification. The script solves the problem of information overload by presenting key indicators in a single, trader-friendly dashboard, reducing the need for multiple charts or indicators.
Originality and Usefulness
This script is a unique mashup of several well-known technical indicators, integrated into a cohesive dashboard with a composite sentiment score. Unlike standalone indicators like RSI or Ichimoku, this script synthesizes signals from Ichimoku Cloud, RSI, ADX, Choppiness, volume, momentum, divergence, and MTF analysis into a unified sentiment metric. The inclusion of Heikin Ashi candles as an optional input adds flexibility for traders preferring smoothed price action. The composite score, derived from weighted contributions of each indicator, provides a novel way to gauge overall market direction, which is not commonly found in public open-source scripts. While individual components like RSI or Ichimoku are widely available, the scriptโs originality lies in its integrated approach, clear table visualization, and customizable settings, making it a practical tool for traders seeking a holistic market view.
Detailed Methodology ("How It Works")
The script processes multiple technical indicators and aggregates their signals into a composite sentiment score, displayed in a table. Below is a breakdown of its core components and logic:
Heikin Ashi Candles:
Logic: Optionally applies Heikin Ashi calculations to smooth price data. Heikin Ashi candles are computed using formulas for open, high, low, and close prices, reducing market noise and emphasizing trends.
Usage: When enabled, all subsequent calculations (Ichimoku, RSI, ADX, etc.) use Heikin Ashi prices instead of regular OHLC data, potentially improving trend clarity.
Ichimoku Cloud:
Logic: Calculates the Conversion Line (9-period high/low average), Base Line (26-period high/low average), Leading Span A (average of Conversion and Base Lines), and Leading Span B (52-period high/low average).
Signals: Bullish if the close price is above both Leading Spans; bearish if below; neutral otherwise.
Average Directional Index (ADX):
Logic: Computes ADX using a 14-period (default) directional movement index, measuring trend strength. PlusDI and MinusDI are calculated from price movements, and ADX is derived from their difference.
Signals: Bullish if PlusDI > MinusDI; bearish otherwise. ADX value indicates trend strength but is not used directly in sentiment scoring.
Relative Strength Index (RSI):
Logic: Calculates RSI over a 21-period (default) using the closing price. Overbought (>75) and oversold (<25) levels are user-defined.
Signals: Bullish if RSI > 50; bearish if RSI < 50. Overbought/oversold conditions are displayed but not used in the composite score.
Momentum:
Logic: Measures the difference between the current close and the close 10 periods ago (default).
Signals: Bullish if momentum > 0; bearish if < 0; neutral if 0.
Choppiness Index:
Logic: Calculates choppiness over a 14-period (default) using ATR and price range, normalized to a 0โ100 scale. Values >61.8 indicate a sideways market; <38.2 indicate a trending market.
Signals: Bullish if choppiness < 38.2; bearish otherwise.
Volume Analysis:
Logic: Compares current volume to a 21-period (default) simple moving average (SMA). Bullish or bearish pressure is determined by whether the close is above or below the open.
Signals: Bullish if volume > 1.2x SMA and bullish pressure dominates; bearish if bearish pressure dominates; neutral otherwise.
Divergence Detection:
Logic: Identifies RSI divergences over a 5-period lookback. A bullish divergence occurs when price makes a lower low, but RSI makes a higher low; bearish divergence is the opposite.
Signals: Bullish or bearish based on divergence detection; neutral if no divergence.
Multi-Timeframe (MTF) Analysis:
Logic: Retrieves daily MACD (12, 26, 9) and volume SMA (21-period) from a higher timeframe. MACD is bullish if the MACD line > signal line; volume is bullish if current volume > daily SMA.
Signals: Bullish or bearish based on MACD and volume trends.
Composite Sentiment Score:
Logic: Aggregates signals from Ichimoku (ยฑ2), RSI (ยฑ1), ADX (ยฑ1), momentum (ยฑ1), choppiness (ยฑ1), divergence (ยฑ1), MTF MACD (ยฑ1), and MTF volume (ยฑ1). The score ranges from -8 to +8.
Signals: Bullish if score > 0; bearish if < 0; neutral if 0.
Alert Condition:
Triggers an alert when the composite sentiment flips (e.g., from bullish to bearish).
Strategy Results and Risk Management
This script is an indicator, not a strategy, and does not include backtesting or automated trade signals. However, the composite sentiment score can guide trading decisions. Assumptions for practical use include:
Commission and Slippage: Traders should account for realistic trading costs (e.g., 0.1% per trade) when acting on signals, though the script does not model these.
Risk Limits: Traders are advised to risk 5โ10% of equity per trade, depending on their strategy and the strength of the composite score (e.g., higher scores may justify larger positions).
Trade Frequency: The scriptโs signals are based on multiple indicators, ensuring sufficient trade opportunities across trending and ranging markets.
Customization: Traders can adjust risk by modifying input parameters (e.g., RSI overbought/oversold levels or lookback periods) to align with their risk tolerance. For example, tightening RSI thresholds may reduce signal frequency but increase precision.
User Settings and Customization
The script offers several user-configurable inputs, allowing traders to tailor its behavior:
Use Heikin Ashi Candles (Boolean, default: false): Enables/disables Heikin Ashi smoothing for all calculations, affecting trend clarity.
ADX Length (Integer, default: 14, min: 1): Sets the period for ADX calculations, influencing trend strength sensitivity.
RSI Length (Integer, default: 21, min: 1): Adjusts RSI calculation period, impacting overbought/oversold detection.
RSI Overbought Level (Integer, default: 75, min: 1): Sets the RSI overbought threshold.
RSI Oversold Level (Integer, default: 25, min: 1): Sets the RSI oversold threshold.
Volatility Length (Integer, default: 21, min: 1): Controls the ATR period for volatility (used in Choppiness).
Volume MA Length (Integer, default: 21, min: 1): Sets the SMA period for volume analysis.
Momentum Length (Integer, default: 10, min: 1): Defines the lookback for momentum calculations.
Choppiness Length (Integer, default: 14, min: 1): Sets the period for Choppiness Index calculations.
These settings allow traders to adjust the indicatorโs sensitivity to market conditions. For example, shorter RSI or ADX periods increase responsiveness but may generate more noise, while longer periods smooth signals but may lag.
Visualizations and Chart Setup
The script plots a table in the top-right corner of the chart, summarizing the following:
Header: Displays โMALAMAโS DASHBOARDโ in white text on a black background.
Indicator Rows: Each row corresponds to an indicator (Ichimoku, RSI, ADX, Choppiness, Volume, Momentum, Divergence, MTF MACD, MTF Volume, Composite).
Columns:
Indicator: Lists the indicator name.
Value: Shows the calculated value (e.g., RSI value, composite score) and sentiment (e.g., Bullish, Bearish, Neutral).
Color Coding: Bullish signals are green, bearish signals are red, and neutral signals are gray, all with 85% transparency for readability.
Composite Sentiment: The final row displays the composite score and sentiment, providing a quick summary of market direction.
No trend lines, signal markers, or additional overlays are plotted, ensuring the chart remains uncluttered and focused on the dashboardโs insights.
Godfather of Support & Resistance Godfather of Support & Resistance
Overview
The Godfather of Support & Resistance script is a powerful tool designed to help traders identify critical support and resistance levels on their charts. These price levels are vital for understanding market behavior, as they often act as turning points where prices reverse, consolidate, or break through. By automating the detection of these levels, this script simplifies your trading decisions and enhances your technical analysis.
How It Works
Pivot Points for Level Detection:
The script uses pivot points to identify potential support (lows) and resistance (highs) levels:
A pivot high is a local peak (a high surrounded by lower highs).
A pivot low is a local trough (a low surrounded by higher lows).
You can adjust the Pivot Length (pivotLen) input to control the sensitivity of detection. Smaller values detect more levels, while larger values focus on major levels.
Dynamic Grouping with Tolerance:
The script dynamically groups nearby price levels using a tolerance percentage. This tolerance is based on the level's price, making it adaptive to all types of assets (low- and high-priced).
For example, if the tolerance is set to 1% and a level is at $100, levels within $1 are grouped together.
Touch Count for Significance:
The script tracks how many times the price interacts with each level (touch count). Only levels that meet or exceed the Minimum Touches (minTouches) input are displayed on the chart. This ensures only meaningful levels are highlighted.
Clear Visual Representation:
Resistance Levels (Red Lines): Represent areas where the price tends to reverse downward.
Support Levels (Green Lines): Represent areas where the price tends to reverse upward.
Labels are added to each level (optional) to display the price and the number of touches for better decision-making.
Inputs You Can Customize
Minimum Touches to Show Level:
Set the minimum number of price interactions required for a level to be displayed.
Maximum Lines to Keep:
Limit the number of support and resistance lines displayed to keep your chart clean and focused.
Pivot Length:
Customize the sensitivity of pivot point detection. Smaller values detect more levels, while larger values focus on key levels.
Tolerance for Touch Detection (%):
Adjust the grouping tolerance as a percentage of the price. For example, 1% groups levels that are within 1% of each other.
How to Use
Apply the Script:
Add the script to your TradingView chart, and it will automatically detect and plot support and resistance levels.
Analyze the Levels:
Use Resistance Levels (red lines) as potential sell zones or areas to place stop-loss orders above.
Use Support Levels (green lines) as potential buy zones or areas to place stop-loss orders below.
Customize for Your Trading Style:
Adjust the inputs to match your preferred strategy and the timeframe or asset you're analyzing.
Example Use Case
Imagine you're analyzing a stock:
Resistance Level: The script identifies resistance at $150 with 3 touches. This might be a potential sell zone if the price struggles to break through.
Support Level: The script identifies support at $130 with 4 touches. This might be a potential buy zone if the price shows signs of bouncing upward.
Key Features
Automatically detects and plots support and resistance levels.
Tracks the number of price touches to filter out weak levels.
Adapts dynamically to price ranges using a percentage-based tolerance.
Fully customizable to suit different trading styles and assets.
Clean and professional chart display with a limit on the number of lines.
Notes
This script is for educational purposes only and should not be considered financial advice.
Always perform your own analysis and manage risk before making trading decisions.
Why Use This Script?
The Godfather of Support & Resistance script simplifies your trading decisions by automating the detection of critical price levels. Whether you're a beginner or an experienced trader, this script is designed to save you time and help you focus on making informed trades.
Start using it today to master the art of support and resistance trading!
Let me know if you need further refinements for this description!
RSI Oversold ScannerPine Script Description for TradingView Publication
Title: RSI Oversold Scanner (1m, 5m, 15m)
Description:
The RSI Oversold Scanner is a powerful tool designed to identify stocks that are simultaneously oversold on the 1-minute, 5-minute, and 15-minute timeframes, based on the Relative Strength Index (RSI). This script is ideal for traders seeking short-term reversal or momentum opportunities across multiple intraday timeframes.
Key Features:
Multi-Timeframe RSI Analysis: Calculates RSI (default length: 14) on the 1m, 5m, and 15m timeframes and checks if all are below the oversold threshold (default: 30).
Visual Output: Displays a table in the top-right corner showing RSI values and oversold status ("Yes" or "No") for each timeframe, making it easy to verify conditions.
Scan Result: Plots a value of 1 when all three timeframes are oversold, or 0 otherwise, enabling quick identification of matching stocks.
Alert Support: Includes an alert condition that triggers when a stock is oversold on all timeframes, with a customizable message for real-time notifications.
User-Friendly: Built with Pine Script v6 for compatibility and reliability, with clear visual feedback for traders of all levels.
How It Works:
The script uses ta.rsi to compute RSI on the current chartโs timeframe (1m) and request.security to fetch RSI data for the 5m and 15m timeframes.
It checks if RSI is below the oversold level (default: 30) on all three timeframes.
A table displays the RSI values and oversold status for easy debugging.
The Scan Result plot (1 or 0) indicates whether the stock meets the oversold criteria, which can be used for manual scanning or alerts.
Usage Instructions:
Add the script to your chart via Pine Editor.
Use a watchlist to switch between stocks and check the table or Scan Result for oversold conditions.
Set alerts by selecting the scriptโs Scan Result condition (value = 1) to get notified when a stock is oversold on all timeframes.
Customize the RSI length or oversold level in the scriptโs code if needed (e.g., change rsiLength or oversoldLevel).
Notes:
Best used on intraday charts (e.g., 1m or higher) with a watchlist for manual scanning, as TradingViewโs Stock Screener does not directly support custom Pine Scripts.
Real-time alerts and intraday data may require a TradingView paid plan.
The script uses only two request.security calls, staying well within Pine Scriptโs limits.
Ideal For:
Day traders and swing traders looking for oversold stocks across multiple intraday timeframes.
Users who want to combine technical analysis with visual and alert-based confirmation.
ZenAlgo - BenderThis script combines several volume-based methodologies into a single chart overlay to help traders analyze market participation and volume distribution. It aggregates volume from multiple sourcesโspot and perpetual markets across different exchangesโand processes it to display various insights directly on the chart.
The script provides a detailed view of both individual-bar volume and broader aggregated trends. It calculates certain values, plots different shapes and overlays, and includes an optional informational table. However, it does not offer financial signals or predict future price movements. Instead, it presents multiple volume and range-related highlights for educational or analytical observations.
Below is a detailed breakdown of the core elements in this script:
Core Data Calculation and Aggregation
To build a comprehensive volume picture, the script retrieves volume data from multiple predefined exchanges for both Spot and Perpetual pairs. The volume for each bar is processed in Aggregated mode , meaning it combines data across selected sources to produce a single composite volume value.
The script applies average-based aggregation to calculate the final volume figures. The total volume is then used as the basis for further calculations, such as buy/sell volume decomposition and Delta analysis.
Buy/Sell Volume Decomposition
Each barโs total volume is separated into an estimated buy portion and a sell portion. This decomposition uses logic that considers wick length, body size, and whether the bar closed higher or lower than it opened. The script assigns fractions of the total volume to the upper wick, lower wick, and body, then multiplies these by the total aggregated volume to estimate buy and sell volumes.
This breakdown is calculated separately for spot-only volume , perp-only volume , and their aggregated sums, allowing traders to analyze how much of each barโs volume is estimated as "buy" or "sell."
Delta and Cumulative Delta
The script computes a Delta (buy volume minus sell volume) for each bar. A positive Delta suggests more buying during that bar, while a negative Delta suggests more selling.
It also computes Cumulative Delta , summing this Delta over 14 bars (a fixed period). This allows users to observe how short-term buy/sell imbalances accumulate over time.
Visual Bar Coloring (PVSRA Logic)
The script includes logic based on PVSRA (Price Volume Support Resistance Analysis) , which examines average volume over a recent lookback period to determine whether a bar meets certain "climax" or "above-average" thresholds.
Bars are categorized as:
Climax Up or Climax Down: If a bar meets strong volume and range conditions, it is identified as a high-activity bar.
Neutral Colors: Bars that do not meet the threshold are identified as standard volume bars.
Table Summaries
The script includes an optional Spot vs. Perpetual volume table that provides:
Aggregated Spot vs. Perpetual buy/sell volumes
The net difference between buying and selling
The total sum across all included sources
Percentage breakdown of buying vs. selling
A separate multi-timeframe table calculates volume-related metrics for fixed timeframes (15, 60, and 240 minutes), allowing traders to compare their current timeframe with broader trends.
Highlighted Shapes and Diamonds
The script places shape markers above or below bars when certain conditions are met, including:
Dots (circles): Representing a significant increase in net Delta compared to the previous bar.
Diamonds: Markers that appear when volume-based conditions align with predefined thresholds. These vary in size and include an optional "Hardcore Mode" , which applies stricter filtering.
Crossover Triangles: These appear when the internally computed Delta MA (a moving average of Delta) crosses above or below a predefined EMA.
These markers highlight notable changes in volume, Delta, or price action but do not constitute predictive trading signals.
Delta Averages and Overlaid EMAs
The script plots a histogram of the current net Delta (buy minus sell) . Additionally, a Delta Moving Average (Delta MA) is used for tracking trends. The Delta MA is plotted alongside predefined Exponential Moving Averages (EMAs) , such as:
A Delta MA calculated using an exponential moving average (EMA) over 21 bars.
A set of predefined EMAs (lengths such as 3, 5, 7, 10, 13, 16, 21, 25, etc.) plotted to visualize momentum changes.
Areas between these EMAs can be filled with translucent shading to highlight momentum shifts.
Comparing the Delta MA to the overlaid EMAs helps track changes in Delta momentum over time.
Interpreting the Elements
When using this script, consider the following:
Volume Aggregation: The script aggregates volume across multiple Spot and Perpetual sources to provide a broad market view.
Delta and Cumulative Delta: The Delta histogram may spike positively or negatively, highlighting areas of potential buying or selling pressure.
Table Data: If enabled, the tables display buy/sell volume splits for Spot and Perpetual markets, along with multi-timeframe comparisons.
EMA Overlays on Delta: The stacked EMAs help visualize short-term vs. longer-term Delta changes.
Shape Markers: Dots, diamonds, and triangles emphasize notable shifts in volume or Delta but do not imply recommendations for action.
Usage Tips
Toggle "Hardcore Mode" to apply stricter filtering to highlight conditions.
Enable or disable the Spot vs. Perpetual Table to see if the breakdown of volume sources is useful.
Use the multi-timeframe table to compare intraday data with broader trends.
If the chart appears too cluttered, toggle off features like PVSRA color tints or some EMAs to focus on specific elements.
Final Thoughts
This script integrates multiple volume-based calculations, range analysis, aggregated volume from predefined tickers, and various moving averages for Delta. Its visual layersโcolor-coded bars, histograms, shape markers, and tablesโoffer a rich perspective on market activity.
Users can analyze these elements across any timeframe or market combination they prefer. The script does not provide buy/sell signals or make predictions โit is purely an analytical tool for understanding volume-based market dynamics.
Traders should interpret these visual elements according to their own strategy and trading approach.
Enhanced VSA Volume & Candle Colors with MA SelectionOverview:
This script aims to enhance the visualization of volume spikes and price action by coloring volume bars and price candles dynamically based on the volume behavior. It allows traders to customize the type of volume moving average (SMA, EMA, or VWMA) used and apply various color schemes to highlight high, low, and extreme volume conditions. Additionally, alerts are generated when extreme or low-volume conditions occur.
---------------------------------------------------------------------------------------------------------------------
Key Features:
Customizable Volume Lookback Period:
The script allows users to define the period for calculating the moving average of volume (default: 200).
Volume Multiplier Settings:
High and low volume thresholds are defined using multipliers. Users can adjust these to customize how volume is categorized (default multipliers: 1.5 for high volume, 0.5 for low volume).
Percentile-Based Extreme Volume Detection:
The script calculates a percentile threshold for extreme volume (default: 90th percentile) based on the volume data, highlighting exceptionally high volume spikes.
Moving Average Selection:
Users can choose between Simple Moving Average (SMA), Exponential Moving Average (EMA), or Volume Weighted Moving Average (VWMA) to track volume trends over the selected lookback period.
Volume-Based Price Bar Coloring:
Price bars can be colored according to the volume conditions (high, low, or extreme). This feature can be toggled on or off.
Dynamic Transparency and Color Customization:
The script allows users to set custom colors for different volume conditions (high, low, neutral, extreme) and adjusts the transparency of volume bars based on the relative size of the volume.
Alerts:
Alerts can be set for when extreme volume spikes or low volume conditions are detected.
---------------------------------------------------------------------------------------------------------------------
Script Components:
Volume Histogram Plot:
Displays the volume bars with dynamic coloring based on the volume condition (high, low, or extreme). The color of the bars adjusts for clarity, with transparency based on volume levels.
Moving Average Plot:
Plots the selected volume moving average (SMA, EMA, or VWMA) to visualize the trend of volume over the chosen lookback period.
Smoothed Average Volume (EMA of Volume):
A smoothed EMA line is plotted to provide a clear representation of volume trends over time.
Price Bar Coloring:
If enabled, price bars are colored according to the current volume condition, providing immediate visual feedback to the trader.
---------------------------------------------------------------------------------------------------------------------
How It Can Be Used:
Volume Analysis for Entry/Exit Points: Traders can use the volume conditions (high, low, and extreme) to identify potential entry or exit points. High-volume bars often signal strong market activity, while low-volume bars may indicate consolidation or indecision.
Volume Confirmation for Trend Reversal: Extreme volume spikes can sometimes precede significant price movements. Traders can monitor these spikes for potential trend reversal signals.
Customizing Alerts: Alerts based on volume conditions help traders stay updated on important volume events without constantly monitoring the chart.
Color-Coded Price Action: The dynamic coloring of price bars makes it easier to identify periods of strong or weak market participation, allowing traders to make informed decisions quickly.
---------------------------------------------------------------------------------------------------------------------
Compliance with TradingView's House Rules:
No Promotion of Financial Products: The script does not promote any specific financial instruments or products, ensuring compliance with TradingViewโs content guidelines.
Clear Functionality: The script provides clear, functional analysis tools without making unsupported claims about predicting market movements.
No Automated Trading: The script does not include any automated trading or order execution features, which complies with TradingViewโs policy on non-automated scripts.
This breakdown ensures clarity on the scriptโs purpose, features, and how it might be used by traders. It's written in a way that fits TradingView's content guidelines, keeping the focus on providing valuable analytical tools rather than making promises or promoting any financial product.
Trend Vanguard StrategyHow to Use:
Trend Vanguard Strategy is a multi-feature Pine Script strategy designed to identify market pivots, draw dynamic support/resistance, and generate trade signals via ZigZag breakouts. Hereโs how it works and how to use it:
ZigZag Detection & Pivot Points
The script locates significant swing highs and lows using configurable Depth, Deviation, and Backstep values.
It then connects these pivots with lines (ZigZag) to highlight directional changes and prints labels (โBuy,โ โSell,โ etc.) at key turning points.
Support & Resistance Trendlines
Pivot highs and lows are used to draw dashed S/R lines in real-time.
When price crosses these lines, the script triggers a breakout signal (long or short).
EMA Overlays
Up to four EMAs (with customizable lengths and colors) can be overlaid on the chart for added trend confirmation.
Enable/disable each EMA independently via the settings.
Repaint Option
Turning on โSmooth Indicator Linesโ (repaint) uses future data to refine past pivots.
This can make historical signals look cleaner but does not reflect true historical conditions.
Turning it off ensures signals remain fixed once they appear.
Strategy Entries & Exits
On each new ZigZag โBuyโ or โSellโ signal, the script closes any open position and flips to the opposite side (if desired).
Works with the built-in TradingView Strategy engine for backtesting.
Additional Inputs (Placeholders)
Volume Filter and RSI Filter settings exist but are not fully implemented in the current code. Future versions may incorporate these filters more directly.
How to Use
Add to Chart: Click โIndicatorsโ โ โInvite-Only Scriptsโ (or โMy Scriptsโ) and select โTrend Vanguard Strategy.โ
Configure Settings:
Adjust ZigZag Depth, Deviation, and Backstep to fine-tune pivot sensitivity.
Enable or disable each EMA to see how it aligns with market trends.
Toggle โSmooth Indicator Linesโ on or off depending on whether you want repainting.
Backtest and Forward Test:
Use TradingViewโs โStrategy Testerโ tab to review hypothetical performance.
Remember that repainting can alter past signals if enabled.
Monitor Live:
Watch for breakout triangles or ZigZag labels to identify potential reversal or breakout trades in real time.
Disclaimer: This script is purely educational and not financial advice. Always combine it with sound risk management and thorough analysis. Enjoy exploring the script, and feel free to experiment with the different settings to match your trading style!
Multi-Indicator Signals with Selectable Options by DiGetMulti-Indicator Signals with Selectable Options
Script Overview
This Pine Script is a multi-indicator trading strategy designed to generate buy/sell signals based on combinations of popular technical indicators: RSI (Relative Strength Index) , CCI (Commodity Channel Index) , and Stochastic Oscillator . The script allows you to select which combination of signals to display, making it highly customizable and adaptable to different trading styles.
The primary goal of this script is to provide clear and actionable entry/exit points by visualizing buy/sell signals with arrows , labels , and vertical lines directly on the chart. It also includes input validation, dynamic signal plotting, and clutter-free line management to ensure a clean and professional user experience.
Key Features
1. Customizable Signal Types
You can choose from five signal types:
RSI & CCI : Combines RSI and CCI signals for confirmation.
RSI & Stochastic : Combines RSI and Stochastic signals.
CCI & Stochastic : Combines CCI and Stochastic signals.
RSI & CCI & Stochastic : Requires all three indicators to align for a signal.
All Signals : Displays individual signals from each indicator separately.
This flexibility allows you to test and use the combination that works best for your trading strategy.
2. Clear Buy/Sell Indicators
Arrows : Buy signals are marked with upward arrows (green/lime/yellow) below the candles, while sell signals are marked with downward arrows (red/fuchsia/gray) above the candles.
Labels : Each signal is accompanied by a label ("BUY" or "SELL") near the arrow for clarity.
Vertical Lines : A vertical line is drawn at the exact bar where the signal occurs, extending from the low to the high of the candle. This ensures you can pinpoint the exact entry point without ambiguity.
3. Dynamic Overbought/Oversold Levels
You can customize the overbought and oversold levels for each indicator:
RSI: Default values are 70 (overbought) and 30 (oversold).
CCI: Default values are +100 (overbought) and -100 (oversold).
Stochastic: Default values are 80 (overbought) and 20 (oversold).
These levels can be adjusted to suit your trading preferences or market conditions.
4. Input Validation
The script includes built-in validation to ensure that oversold levels are always lower than overbought levels for each indicator. If the inputs are invalid, an error message will appear, preventing incorrect configurations.
5. Clean Chart Design
To avoid clutter, the script dynamically manages vertical lines:
Only the most recent 50 buy/sell lines are displayed. Older lines are automatically deleted to keep the chart clean.
Labels and arrows are placed strategically to avoid overlapping with candles.
6. ATR-Based Offset
The vertical lines and labels are offset using the Average True Range (ATR) to ensure they donโt overlap with the price action. This makes the signals easier to see, especially during volatile market conditions.
7. Scalable and Professional
The script uses arrays to manage multiple vertical lines, ensuring scalability and performance even when many signals are generated.
It adheres to Pine Script v6 standards, ensuring compatibility and reliability.
How It Works
Indicator Calculations :
The script calculates the values of RSI, CCI, and Stochastic Oscillator based on user-defined lengths and smoothing parameters.
It then checks for crossover/crossunder conditions relative to the overbought/oversold levels to generate individual signals.
Combined Signals :
Depending on the selected signal type, the script combines the individual signals logically:
For example, a "RSI & CCI" buy signal requires both RSI and CCI to cross into their respective oversold zones simultaneously.
Signal Plotting :
When a signal is generated, the script:
Plots an arrow (upward for buy, downward for sell) at the corresponding bar.
Adds a label ("BUY" or "SELL") near the arrow for clarity.
Draws a vertical line extending from the low to the high of the candle to mark the exact entry point.
Line Management :
To prevent clutter, the script stores up to 50 vertical lines in arrays (buy_lines and sell_lines). Older lines are automatically deleted when the limit is exceeded.
Why Use This Script?
Versatility : Whether you're a scalper, swing trader, or long-term investor, this script can be tailored to your needs by selecting the appropriate signal type and adjusting the indicator parameters.
Clarity : The combination of arrows, labels, and vertical lines ensures that signals are easy to spot and interpret, even in fast-moving markets.
Customization : With adjustable overbought/oversold levels and multiple signal options, you can fine-tune the script to match your trading strategy.
Professional Design : The script avoids clutter by limiting the number of lines displayed and using ATR-based offsets for better visibility.
How to Use This Script
Add the Script to Your Chart :
Copy and paste the script into the Pine Editor in TradingView.
Save and add it to your chart.
Select Signal Type :
Use the "Signal Type" dropdown menu to choose the combination of indicators you want to use.
Adjust Parameters :
Customize the lengths of RSI, CCI, and Stochastic, as well as their overbought/oversold levels, to match your trading preferences.
Interpret Signals :
Look for green arrows and "BUY" labels for buy signals, and red arrows and "SELL" labels for sell signals.
Vertical lines will help you identify the exact bar where the signal occurred.
Tips for Traders
Backtest Thoroughly : Before using this script in live trading, backtest it on historical data to ensure it aligns with your strategy.
Combine with Other Tools : While this script provides reliable signals, consider combining it with other tools like support/resistance levels or volume analysis for additional confirmation.
Avoid Overloading the Chart : If you notice too many signals, try tightening the overbought/oversold levels or switching to a combined signal type (e.g., "RSI & CCI & Stochastic") for fewer but higher-confidence signals.
G&S SMT### Description of the Pine Script
This Pine Script is designed to identify **Smart Money Technique (SMT)** setups between **Gold (GC1!)** and **Silver (SI1!) Futures** on a **15-minute timeframe**. It specifically looks for divergences between the price movements of Gold and Silver over the last 4 candles and compares it with the next candle's price movement. The script provides **Bullish** and **Bearish** signals for SMT during a specified time range of **8:45 AM EST to 10:30 AM EST**.
### Key Features of the Script:
1. **Futures Symbols**:
- The script uses **Gold Futures (GC1!)** and **Silver Futures (SI1!)** on a 15-minute timeframe to monitor their price movements.
2. **Time Range Filtering**:
- The signals are only active between **8:45 AM EST and 10:30 AM EST**, ensuring that the script only signals within the most relevant trading hours for your strategy.
3. **SMT Calculation (Last 4 Candles vs Next Candle)**:
- **Gold and Silver Price Change Calculation**: The script compares the price changes of **Gold** and **Silver** over the **last 4 candles** and then compares them with the price movement of the **next candle**:
- **Bullish SMT**: Occurs when Gold shows an increase in the last 4 candles while Silver shows a decrease, and both Gold and Silver show an increase in the next candle.
- **Bearish SMT**: Occurs when Gold shows a decrease in the last 4 candles while Silver shows an increase, and both Gold and Silver show a decrease in the next candle.
4. **Bullish and Bearish Signals**:
- **Bullish SMT Signal**: The script will plot a **green** arrow below the bar when a Bullish SMT setup is identified.
- **Bearish SMT Signal**: A **red** arrow above the bar is plotted when a Bearish SMT setup is identified.
5. **Gold and Silver Difference Plot**:
- The difference between the prices of **Gold** and **Silver** is plotted as a **blue line**, giving a visual representation of the relationship between the two assets. When the difference line moves significantly, it can indicate a potential divergence or convergence in the prices of Gold and Silver.
### Script Logic Breakdown:
1. **Price Change for Last 4 Candles**:
- The script calculates the price change for Gold and Silver from the 4th-to-last candle to the last candle.
- `gold_change_last4` and `silver_change_last4` calculate these price differences.
2. **Price Change for Next Candle**:
- It then calculates the price change from the last candle to the next candle.
- `gold_change_next` and `silver_change_next` calculate these price differences.
3. **Bullish SMT Condition**:
- If Gold increased while Silver decreased in the last 4 candles, and both Gold and Silver show an increase in the next candle, it indicates a **Bullish SMT**.
4. **Bearish SMT Condition**:
- If Gold decreased while Silver increased in the last 4 candles, and both Gold and Silver show a decrease in the next candle, it indicates a **Bearish SMT**.
5. **Time Filter**:
- Signals are only plotted when the current time is between **8:45 AM EST and 10:30 AM EST** to match your preferred trading hours.
### Visualization:
- **Bullish Signals**: Plotted as **green arrows** below the bars when a Bullish SMT setup is identified.
- **Bearish Signals**: Plotted as **red arrows** above the bars when a Bearish SMT setup is identified.
- **Gold - Silver Difference**: A **blue line** is plotted to show the price difference between Gold and Silver, helping visualize any divergence.
### How It Helps:
- **Divergence Identification**: This script highlights potential divergences between Gold and Silver Futures, which can provide insights into market sentiment and smart money movements.
- **Focus on Relevant Time Frame**: By filtering signals between 8:45 AM EST and 10:30 AM EST, you are focusing on a timeframe that can be more beneficial for trading.
- **Visual Clarity**: The arrows and the price difference line provide clear signals and a visual representation of the relationship between Gold and Silver, helping you make informed trading decisions.
This script is an automated approach to detecting **SMT setups** and helping traders recognize when Gold and Silver might be signaling a bullish or bearish move based on their divergence patterns.
Weighted Fourier Transform: Spectral Gating & Main Frequency๐๐ป This drop has 2 purposes:
1) to inform every1 who'd ever see it that Weighted Fourier Tranform does exist, while being available nowhere online, not even in papers, yet there's nothing incredibly complicated about it, and it can/should be used in certain cases;
2) to show TradingView users how they can use it now in dem endevours, to show em what spectral filtering is, and what can they do with all of it in diy mode.
... so we gonna have 2 sections in the description
Section 1: Weighted Fourier Transform
It's quite easy to include weights in Fourier analysis: you just premultiply each datapoint by its corresponding weight -> feed to direct Fourier Transform, and then divide by weights after inverse Fourier transform. Alternatevely, in direct transform you just multiply contributions of each data point to the real and imaginary parts of the Fourier transform by corresponding weights (in accumulation phase), and in inverse transform you divide by weights instead during the accumulation phase. Everything else stays the same just like in non-weighted version.
If you're from the first target group let's say, you prolly know a thing or deux about how to code & about Fourier Transform, so you can just check lines of code to see the implementation of Weighted Discrete version of Fourier Transform, and port it to to any technology you desire. Pine Script is a developing technology that is incredibly comfortable in use for quant-related tasks and anything involving time series in general. While also using Python for research and C++ for development, every time I can do what I want in Pine Script, I reach for it and never touch matlab, python, R, or anything else.
Weighted version allows you to explicetly include order/time information into the operation, which is essential with every time series, although not widely used in mainstream just as many other obvious and right things. If you think deeply, you'll understand that you can apply a usual non-weighted Fourier to any 2d+ data you can (even if none of these dimensions represent time), because this is a geometric tool in essence. By applying linearly decaying weights inside Fourier transform, you're explicetly saying, "one of these dimensions is Time, and weights represent the order". And obviously you can combine multiple weightings, eg time and another characteristic of each datum, allows you to include another non-spatial dimension in your model.
By doing that, on properly processed (not only stationary but Also centered around zero data), you can get some interesting results that you won't be able to recreate without weights:
^^ A sine wave, centered around zero, period of 16. Gray line made by: DWFT (direct weighted Fourier transform) -> spectral gating -> IWFT (inverse weighted Fourier transform) -> plotting the last value of gated reconstructed data, all applied to expanding window. Look how precisely it follows the original data (the sine wave) with no lag at all. This can't be done by using non-weighted version of Fourier transform.
^^ spectral filtering applied to the whole dataset, calculated on the latest data update
And you should never forget about Fast Fourier Transform, tho it needs recursion...
Section 2: About use cases for quant trading, about this particular implementaion in Pine Script 6 (currently the latest version as of Friday 13, December 2k24).
Given the current state of things, we have certain limits on matrix size on TradingView (and we need big dope matrixes to calculate polynomial regression -> detrend & center our data before Fourier), and recursion is not yet available in Pine Script, so the script works on short datasets only, and requires some time.
A note on detrending. For quality results, Fourier Transform should be applied to not only stationary but also centered around zero data. The rightest way to do detrending of time series
is to fit Cumulative Weighted Moving Polynomial Regression (known as WLSMA in some narrow circles xD) and calculate the deltas between datapoint at time t and this wonderful fit at time t. That's exactly what you see on the main chart of script description: notice the distances between chart and WLSMA, now look lower and see how it matches the distances between zero and purple line in WFT study. Using residuals of one regression fit of the whole dataset makes less sense in time series context, we break some 'time' and order rules in a way, tho not many understand/cares abouit it in mainstream quant industry.
Two ways of using the script:
Spectral Gating aka Spectral filtering. Frequency domain filtering is quite responsive and for a greater computational cost does not introduce a lag the way it works with time-domain filtering. Works this way: direct Fourier transform your data to get frequency & phase info -> compute power spectrum out of it -> zero out all dem freqs that ain't hit your threshold -> inverse Fourier tranform what's left -> repeat at each datapoint plotting the very first value of reconstructed array*. With this you can watch for zero crossings to make appropriate trading decisions.
^^ plot Freq pass to use the script this way, use Level setting to control the intensity of gating. These 3 only available values: -1, 0 and 1, are the general & natural ones.
* if you turn on labels in script's style settings, you see the gray dots perfectly fitting your data. They get recalculated (for the whole dataset) at each update. You call it repainting, this is for analytical & aesthetic purposes. Included for demonstration only.
Finding main/dominant frequency & period. You can use it to set up Length for your other studies, and for analytical purposes simply to understand the periodicity of your data.
^^ plot main frequency/main period to use the script this way. On the screenshot, you can see the script applied to sine wave of period 16, notice how many datapoints it took the algo to figure out the signal's period quite good in expanding window mode
Now what's the next step? You can try applying signal windowing techniques to make it all less data-driven but your ego-driven, make a weighted periodogram or autocorrelogram (check Wiener-Khinchin Theorem ), and maybe whole shiny spectrogram?
... you decide, choice is yours,
The butterfly reflect the doors ...
โ
Cumulative Buying and Selling Volume with 3 Lookback PeriodsScript Overview:
This script is designed to help traders identify market momentum by analyzing buying and selling volume. It calculates the cumulative buying and selling pressure over three different lookback periods, providing insights into whether the bulls or bears are dominating at any given time. The script does this by computing the cumulative buying and selling volume for each period and comparing them through exponential moving averages (EMA) to smooth out short-term fluctuations.
Purpose and Use:
The primary goal of this script is to highlight shifts in market sentiment based on volume dynamics. Volume is a critical component in market analysis, often signaling the strength behind price movements. By focusing on cumulative buying and selling pressure, the script gives traders an idea of whether the market is trending towards more buying or selling during specific periods. Traders can use this tool to:
Identify potential entry points when buying pressure is strong.
Recognize potential selling opportunities when selling pressure is increasing.
Detect periods of indecision when neither buying nor selling dominates.
Key Concepts:
1. Buying Volume (BV):
The buying volume is calculated based on the price range of each candle. It represents the volume allocated to the bullish side of the market:
When the close is near the high, the buying volume is higher.
Formula: BV = volume * (close - low) / (high - low).
2. Selling Volume (SV):
Similarly, selling volume is derived based on the position of the close relative to the low:
When the close is near the low, selling volume is higher.
Formula: SV = volume * (high - close) / (high - low)
3. Lookback Periods:
The script allows users to define three different lookback periods (5, 10, and 20 by default). These periods smooth out the cumulative buying and selling volumes using EMA calculations:
Shorter periods capture more immediate changes in volume dynamics.
Longer periods provide a broader perspective on market trends.
4. Cumulative Volume Calculation:
For each lookback period, cumulative buying and selling volumes are tracked separately and then smoothed with EMA:
emaBuyVol and emaSellVol are the smoothed values for buying and selling volumes over the lookback periods.
5. Market Pressure Comparison:
Buying Pressure: If the EMA of buying volume is greater than the EMA of selling volume for a particular lookback period, the script considers that buying pressure dominates for that period.
Selling Pressure: Conversely, if selling volume dominates over buying volume for a period, the script registers selling pressure.
6. Overall Market Pressure:
The script aggregates the buying and selling pressures from the three lookback periods to determine the overall market sentiment:
If the majority of periods show buying pressure, the market is bullish.
If the majority show selling pressure, the market is bearish.
If neither side dominates, it suggests a neutral or indecisive market.
Visual Cues:
The script provides visual feedback to help traders quickly interpret the market pressure:
Background Color:
Green (#2bff00) when buying pressure dominates.
Red (#ff0000) when selling pressure dominates.
Gray (#404040) when there is no clear dominance.
Bar Color: The script also colors the price bars based on the dominant market pressure:
Green for buying pressure.
Red for selling pressure.
Gray for neutral or balanced market pressure.
Reset Mechanism:
At the start of each new candle, the cumulative volumes for all three periods are reset to zero. This ensures that the cumulative volumes are only measured for the current candle, preventing carryover from previous periods that could distort the analysis.
How Traders Can Use This Script:
Trend Confirmation: Traders can use the script as a trend confirmation tool. When the background turns green (buying dominance), it suggests bullish momentum. When red, bearish momentum is likely. This information can be used to confirm existing positions or signal new trades in the direction of the market pressure.
Reversal Detection: A sudden shift in the background color (from green to red or vice versa) can indicate a potential reversal. This can be particularly useful when combined with other technical indicators such as price action or support/resistance levels.
Multiple Timeframes: Since the script supports three different lookback periods, it provides a comprehensive view of market pressure across short-term, medium-term, and long-term perspectives. Traders can tailor the lookback periods based on their preferred timeframe to match their trading style, whether itโs intraday trading or longer-term swing trading.
Risk Management: The script's clear visual cues help traders manage risk by highlighting when selling pressure increases, allowing them to consider reducing long positions or tightening stop-losses.
Ichimoku Wave Oscillator with Custom MAIchimoku Wave Oscillator with Custom MA - Pine Script Description
This script uses various types of moving averages (MA) to implement the concept of Ichimoku wave theory for wave analysis. The user can select from SMA, EMA, WMA, TEMA, SMMA to visualize the difference between short-term, medium-term, and long-term waves, while identifying potential buy and sell signals at crossover points.
Key Features:
MA Type Selection:
The user can select from SMA (Simple Moving Average), EMA (Exponential Moving Average), WMA (Weighted Moving Average), TEMA (Triple Exponential Moving Average), and SMMA (Smoothed Moving Average) to calculate the waves. This script is unique in that it combines TEMA and SMMA, distinguishing it from other simple moving average-based indicators.
TEMA (Triple Exponential Moving Average): Best suited for capturing short-term trends with quick responsiveness.
SMMA (Smoothed Moving Average): Useful for identifying long-term trends with minimal noise, providing more stable signals.
Wave Calculations:
The script calculates three waves: Wave 9-17, Wave 17-26, and Wave 9-26, each of which analyzes different time horizons.
Wave 9-17 (blue): Primarily used for analyzing short-term trends, ideal for detecting quick changes.
Wave 17-26 (red): Used to analyze medium-term trends, providing a more stable market direction.
Wave 9-26 (green): Represents long-term trends, suitable for understanding broader trend shifts.
Baseline (0 Line):
Each wave is visualized around the 0 line, where waves above the line indicate an uptrend and waves below the line indicate a downtrend. This allows for easy identification of trend reversals.
Crossover Signals:
CrossUp: When Wave 9-17 (short-term wave) crosses Wave 17-26 (medium-term wave) upward, it is considered a buy signal, indicating a potential upward trend shift.
CrossDown: When Wave 9-17 (short-term wave) crosses Wave 17-26 downward, it is considered a sell signal, indicating a potential downward trend shift.
Background Color for Signal:
The script visually highlights the signals with background colors. When a buy signal occurs, the background turns green, and when a sell signal occurs, the background turns red. This makes it easier to spot reversal points.
Calculation Method:
The script calculates the difference between moving averages to display the wave oscillation. Wave 9-17, Wave 17-26, and Wave 9-26 represent the difference between the moving averages for different time periods, allowing for analysis of short-term, medium-term, and long-term trends.
Wave 9-17 = MA(9) - MA(17): Represents the difference between the short-term moving averages.
Wave 17-26 = MA(17) - MA(26): Represents the difference between medium-term moving averages.
Wave 9-26 = MA(9) - MA(26): Provides insight into the long-term trend.
This calculation method effectively visualizes the oscillation of waves and helps identify trend reversals at crossover points.
Uniqueness of the Script:
Unlike other moving average-based indicators, this script combines TEMA (Triple Exponential Moving Average) and SMMA (Smoothed Moving Average) to capture both short-term sensitivity and long-term stability in trends. This duality makes the script more versatile for different market conditions.
TEMA is ideal for short-term traders who need quick signals, while SMMA is useful for long-term investors seeking stability and noise reduction. By combining these two, this script provides a more refined analysis of trend changes across various timeframes.
How to Use:
This script is effective for trend analysis and reversal detection. By visualizing the crossover points between the waves, users can spot potential buy and sell signals to make more informed trading decisions.
Scalping strategies can rely on Wave 9-17 to detect quick trend changes, while those looking for medium-term trends can analyze signals from Wave 17-26.
For a broader market overview, Wave 9-26 helps users understand the long-term market trend.
This script is built on the concept of wave theory to anticipate trend changes, making it suitable for various timeframes and strategies. The user can tailor the characteristics of the waves by selecting different MA types, allowing for flexible application across different trading strategies.
Ichimoku Wave Oscillator with Custom MA - Pine Script ์ค๋ช
์ด ์คํฌ๋ฆฝํธ๋ ๋ค์ํ ์ด๋ ํ๊ท (MA) ์ ํ์ ํ์ฉํ์ฌ ์ผ๋ชฉ ํ๋๋ก ์ ๊ฐ๋
์ ๊ธฐ๋ฐ์ผ๋ก ํ๋ ๋ถ์์ ์๋ํ๋ ์งํ์
๋๋ค. ์ฌ์ฉ์๋ SMA, EMA, WMA, TEMA, SMMA ์ค ์ํ๋ ์ด๋ ํ๊ท ์ ์ ํํ ์ ์์ผ๋ฉฐ, ์ด๋ฅผ ํตํด ๋จ๊ธฐ, ์ค๊ธฐ, ์ฅ๊ธฐ ํ๋ ๊ฐ์ ์ฐจ์ด๋ฅผ ์๊ฐํํ๊ณ , ๊ต์ฐจ์ ์์ ์์น ๋ฐ ํ๋ฝ ์ ํธ๋ฅผ ํฌ์ฐฉํ ์ ์์ต๋๋ค.
์ฃผ์ ๊ธฐ๋ฅ:
์ด๋ ํ๊ท (MA) ์ ํ ์ ํ:
์ฌ์ฉ์๋ SMA(๋จ์ ์ด๋ ํ๊ท ), EMA(์ง์ ์ด๋ ํ๊ท ), WMA(๊ฐ์ค ์ด๋ ํ๊ท ), TEMA(์ผ์ค ์ง์ ์ด๋ ํ๊ท ), SMMA(ํํ ์ด๋ ํ๊ท ) ์ค ํ๋๋ฅผ ์ ํํ์ฌ ํ๋์ ๊ณ์ฐํ ์ ์์ต๋๋ค. ์ด ์คํฌ๋ฆฝํธ๋ TEMA์ SMMA์ ๋
์ฐฝ์ ์ธ ์กฐํฉ์ ํตํด ๊ธฐ์กด์ ๋จ์ํ ์ด๋ ํ๊ท ์งํ์ ์ฐจ๋ณํ๋ฉ๋๋ค.
TEMA(์ผ์ค ์ง์ ์ด๋ ํ๊ท ): ๋น ๋ฅธ ๋ฐ์์ผ๋ก ๋จ๊ธฐ ํธ๋ ๋๋ฅผ ํฌ์ฐฉํ๋ ๋ฐ ์ ํฉํฉ๋๋ค.
SMMA(ํํ ์ด๋ ํ๊ท ): ์ฅ๊ธฐ์ ์ธ ์ถ์ธ๋ฅผ ํ์
ํ๋ ๋ฐ ์ ์ฉํ๋ฉฐ, ๋
ธ์ด์ฆ๋ฅผ ์ต์ํํ์ฌ ์์ ์ ์ธ ์ ํธ๋ฅผ ์ ๊ณตํฉ๋๋ค.
ํ๋(Wave) ๊ณ์ฐ:
์ด ์คํฌ๋ฆฝํธ๋ Wave 9-17, Wave 17-26, Wave 9-26์ ์ธ ๊ฐ์ง ํ๋์ ๊ณ์ฐํ์ฌ ๊ฐ๊ฐ ๋จ๊ธฐ, ์ค๊ธฐ, ์ฅ๊ธฐ ์ถ์ธ๋ฅผ ๋ถ์ํฉ๋๋ค.
Wave 9-17 (ํ๋์): ์ฃผ๋ก ๋จ๊ธฐ ์ถ์ธ๋ฅผ ๋ถ์ํ๋ ๋ฐ ์ฌ์ฉ๋๋ฉฐ, ๋น ๋ฅธ ์ถ์ธ ๋ณํ๋ฅผ ํฌ์ฐฉํ๋ ๋ฐ ์ ์ฉํฉ๋๋ค.
Wave 17-26 (๋นจ๊ฐ์): ์ค๊ธฐ ์ถ์ธ๋ฅผ ๋ถ์ํ๋ ๋ฐ ์ฌ์ฉ๋๋ฉฐ, ์ข ๋ ์์ ์ ์ธ ์์ฅ ํ๋ฆ์ ๋ณด์ฌ์ค๋๋ค.
Wave 9-26 (๋
น์): ์ฅ๊ธฐ ์ถ์ธ๋ฅผ ๋ํ๋ด๋ฉฐ, ํฐ ํ๋ฆ์ ๋ฐฉํฅ์ฑ์ ํ์
ํ๋ ๋ฐ ์ ํฉํฉ๋๋ค.
๊ธฐ์ค์ (0 ๋ผ์ธ):
๊ฐ ํ๋์ 0 ๋ผ์ธ์ ๊ธฐ์ค์ผ๋ก ๋ณ๋์ฑ์ ์๊ฐํํฉ๋๋ค. 0 ์์ ์๋ ํ๋์ ์์น์ธ, 0 ์๋์ ์๋ ํ๋์ ํ๋ฝ์ธ๋ฅผ ๋ํ๋ด๋ฉฐ, ์ด๋ฅผ ํตํด ์ถ์ธ์ ์ ํ์ ์ฝ๊ฒ ํ์ธํ ์ ์์ต๋๋ค.
ํ๋ ๊ต์ฐจ ์ ํธ:
CrossUp: Wave 9-17(๋จ๊ธฐ ํ๋)์ด Wave 17-26(์ค๊ธฐ ํ๋)์ ์ํฅ ๊ต์ฐจํ ๋, ์์น ์ ํธ๋ก ๊ฐ์ฃผ๋ฉ๋๋ค. ์ด๋ ๋จ๊ธฐ์ ์ธ ์ถ์ธ ๋ณํ๊ฐ ๋ฐ์ํ ์ ์์์ ์๋ฏธํฉ๋๋ค.
CrossDown: Wave 9-17(๋จ๊ธฐ ํ๋)์ด Wave 17-26(์ค๊ธฐ ํ๋)์ ํํฅ ๊ต์ฐจํ ๋, ํ๋ฝ ์ ํธ๋ก ํด์๋ฉ๋๋ค. ์ด๋ ์์ฅ์ด ์ฝ์ธ๋ก ๋์์ค ๊ฐ๋ฅ์ฑ์ ๋ํ๋
๋๋ค.
๋ฐฐ๊ฒฝ ์์ ํ์:
๊ต์ฐจ ์ ํธ๊ฐ ๋ฐ์ํ ๋, ์์น ์ ํธ๋ ๋
น์ ๋ฐฐ๊ฒฝ, ํ๋ฝ ์ ํธ๋ ๋นจ๊ฐ์ ๋ฐฐ๊ฒฝ์ผ๋ก ์๊ฐ์ ์ผ๋ก ๊ฐ์กฐ๋์ด ์ฌ์ฉ์๊ฐ ์ ํธ๋ฅผ ์ฝ๊ฒ ์ธ์ํ ์ ์์ต๋๋ค.
๊ณ์ฐ ๋ฐฉ์:
์ด ์คํฌ๋ฆฝํธ๋ ์ด๋ ํ๊ท ๊ฐ์ ์ฐจ์ด๋ฅผ ๊ณ์ฐํ์ฌ ๊ฐ ํ๋์ ๋ณ๋์ฑ์ ๋ํ๋
๋๋ค. Wave 9-17, Wave 17-26, Wave 9-26์ ๊ฐ๊ฐ ์ค์ ๋ ์ฃผ๊ธฐ์ ์ด๋ ํ๊ท (MA)์ ์ฐจ์ด๋ฅผ ํตํด, ์์ฅ์ ๋จ๊ธฐ, ์ค๊ธฐ, ์ฅ๊ธฐ ์ถ์ธ ๋ณํ๋ฅผ ์๊ฐ์ ์ผ๋ก ํํํฉ๋๋ค.
Wave 9-17 = MA(9) - MA(17): ๋จ๊ธฐ ์ถ์ธ์ ์ฐจ์ด๋ฅผ ๋ํ๋
๋๋ค.
Wave 17-26 = MA(17) - MA(26): ์ค๊ธฐ ์ถ์ธ์ ์ฐจ์ด๋ฅผ ๋ํ๋
๋๋ค.
Wave 9-26 = MA(9) - MA(26): ์ฅ๊ธฐ์ ์ธ ์ถ์ธ ๋ฐฉํฅ์ ํ์
ํ ์ ์์ต๋๋ค.
์ด๋ฌํ ๊ณ์ฐ ๋ฐฉ์์ ํ๋์ ๋ณ๋์ฑ์ ํ์
ํ๋ ๋ฐ ์ ์ฉํ๋ฉฐ, ์ถ์ธ์ ๊ต์ฐจ์ ์ ํตํด ์์น/ํ๋ฝ ์ ํธ๋ฅผ ์ก์๋
๋๋ค.
์คํฌ๋ฆฝํธ์ ๋
์ฐฝ์ฑ:
์ด ์คํฌ๋ฆฝํธ๋ ๊ธฐ์กด์ ์ด๋ ํ๊ท ๊ธฐ๋ฐ ์งํ๋ค๊ณผ ๋ฌ๋ฆฌ, TEMA(์ผ์ค ์ง์ ์ด๋ ํ๊ท )์ SMMA(ํํ ์ด๋ ํ๊ท )์ ํจ๊ป ์ฌ์ฉํ์ฌ ์งง์ ์ฃผ๊ธฐ์ ๊ธด ์ฃผ๊ธฐ์ ํธ๋ ๋๋ฅผ ๋์์ ํ์
ํ ์ ์๋๋ก ์ค๊ณ๋์์ต๋๋ค. ์ด๋ฅผ ํตํด ๋จ๊ธฐ ํธ๋ ๋์ ๋ฏผ๊ฐํ ๋ณํ์ ์ฅ๊ธฐ ํธ๋ ๋์ ์์ ์ฑ์ ๋ชจ๋ ๋ฐ์ํฉ๋๋ค.
TEMA๋ ๋จ๊ธฐ ํธ๋ ์ด๋์๊ฒ ๋น ๋ฅด๊ณ ๋ฏผ์ฒฉํ ์ ํธ๋ฅผ ์ ๊ณตํ๋ฉฐ, SMMA๋ ์ฅ๊ธฐ ํฌ์์์๊ฒ ๋ณด๋ค ์์ ์ ์ด๊ณ ๊ธด ํธํก์ ํธ๋ ๋๋ฅผ ํ์
ํ๋ ๋ฐ ์ ๋ฆฌํฉ๋๋ค. ๋ ์งํ์ ๊ฒฐํฉ์ผ๋ก, ๋ค์ํ ์์ฅ ํ๊ฒฝ์์ ์ถ์ธ์ ๋ณํ๋ฅผ ๋ ์ ๊ตํ๊ฒ ๋ถ์ํ ์ ์์ต๋๋ค.
์ฌ์ฉ ๋ฐฉ๋ฒ:
์ด ์คํฌ๋ฆฝํธ๋ ์ถ์ธ ๋ถ์๊ณผ ๋ณ๊ณก์ ํฌ์ฐฉ์ ํจ๊ณผ์ ์
๋๋ค. ๊ฐ ํ๋ ๊ฐ์ ๊ต์ฐจ์ ์ ์๊ฐ์ ์ผ๋ก ํ์ธํ๊ณ , ์์น ๋๋ ํ๋ฝ ์ ํธ๋ฅผ ํฌ์ฐฉํ์ฌ ๋งค๋งค ์์ ๊ฒฐ์ ์ ๋์ธ ์ ์์ต๋๋ค.
์ค์บํ ์ ๋ต์์๋ Wave 9-17์ ์ฃผ๋ก ์ฐธ๊ณ ํ์ฌ ๋น ๋ฅด๊ฒ ์ถ์ธ ๋ณํ๋ฅผ ์ก์๋ด๊ณ , ์ค๊ธฐ ์ถ์ธ๋ฅผ ์ฐธ๊ณ ํ๊ณ ์ถ์ ๊ฒฝ์ฐ Wave 17-26์ ์ฌ์ฉํด ์ ํธ๋ฅผ ๋ถ์ํ ์ ์์ต๋๋ค.
์ฅ๊ธฐ์ ์ธ ์์ฅ ํ๋ฆ์ ํ์
ํ๊ณ ์ ํ ๋๋ Wave 9-26์ ํตํด ํฐ ํธ๋ ๋๋ฅผ ํ์ธํ ์ ์์ต๋๋ค.
์ด ์คํฌ๋ฆฝํธ๋ ํ๋ ์ด๋ก ์ ๊ฐ๋
์ ๊ธฐ๋ฐ์ผ๋ก ์์ฅ์ ์ถ์ธ ๋ณํ๋ฅผ ์์ธกํ๋ ๋ฐ ์ ์ฉํ๋ฉฐ, ๋ค์ํ ์๊ฐ๋์ ์ ๋ต์ ๋ง์ถ์ด ์ฌ์ฉํ ์ ์์ต๋๋ค. ํนํ, ์ฌ์ฉ์๊ฐ ์ ํํ MA ์ ํ์ ๋ฐ๋ผ ํ๋์ ํน์ฑ์ ๋ณํ์ํฌ ์ ์์ด, ์ฌ๋ฌ ๋งค๋งค ์ ๋ต์ ์ ์ฐํ๊ฒ ๋์ํ ์ ์์ต๋๋ค.